from django import forms

from App.bootstrap import BootStrapModelForm
from App.models import Order


class OrderCreatForm(BootStrapModelForm):
    userId = forms.IntegerField(
        label='用户编号',
        widget=forms.TextInput(attrs={
            'placeholder': '用户编号',
        })
    )
    orderId = forms.IntegerField(
        label='订单编号',
        widget=forms.TextInput(attrs={
            'placeholder': '订单编号',
        })
    )
    # 婚宴时间
    marryTime = forms.CharField(
        label='婚宴时间',
    )
    # 婚宴地点
    marryPlace = forms.CharField(
        label='婚宴地点',
        widget=forms.TextInput(attrs={
            'placeholder': '婚宴地点',
        })
    )
    # 新郎名
    Bridegroom_name = forms.CharField(
        label='新郎名',
        widget=forms.TextInput(attrs={
            'placeholder': '新郎名',
        })
    )
    # 新郎电话
    Bridegroom_phone = forms.CharField(
        min_length=1,
        max_length=11,
        label='新郎电话号码',
        widget=forms.TextInput(attrs={
            'placeholder': '新郎电话',
        })
    )
    # 新郎地址
    Bridegroom_address = forms.CharField(
        label='新郎地址',
        widget=forms.TextInput(attrs={
            'placeholder': '新郎地址',
        })
    )
    # 新娘名
    Bride_name = forms.CharField(
        label='新娘名',
        widget=forms.TextInput(attrs={
            'placeholder': '新娘名',
        })
    )
    # 新娘电话
    Bride_phone = forms.CharField(
        min_length=1,
        max_length=11,
        label='新娘电话号码',
        widget=forms.TextInput(attrs={
            'placeholder': '新娘电话',
        })
    )
    # 新娘地址
    Bride_address = forms.CharField(
        label='新娘地址',
        widget=forms.TextInput(attrs={
            'placeholder': '新娘地址',
        })
    )

    photographer_employeeId = forms.CharField(
        label='摄影',
        widget=forms.TextInput(attrs={
            'placeholder': '摄影',
        })
    )
    cameraman_employeeId = forms.CharField(
        label='摄像',
        widget=forms.TextInput(attrs={
            'placeholder': '摄像',
        })
    )
    dresser_employeeId = forms.CharField(
        label='化妆',
        widget=forms.TextInput(attrs={
            'placeholder': '化妆',
        })
    )
    ushers_employeeId = forms.CharField(
        label='傧相',
        widget=forms.TextInput(attrs={
            'placeholder': '傧相',
        })
    )
    full_dress_companyId = forms.CharField(
        label='礼服',
        widget=forms.TextInput(attrs={
            'placeholder': '礼服',
        })
    )
    wedding_gift_companyId = forms.CharField(
        label='喜礼',
        widget=forms.TextInput(attrs={
            'placeholder': '喜礼',
        })
    )
    motorcade_companyId = forms.CharField(
        label='车队',
        widget=forms.TextInput(attrs={
            'placeholder': '车队',
        })
    )
    wedding_companyId = forms.CharField(
        label='婚庆',
        widget=forms.TextInput(attrs={
            'placeholder': '婚庆',
        })
    )
    type = forms.CharField(
        label='管家类型',
        widget=forms.TextInput(attrs={
            'placeholder': '管家类型',
        })
    )
    channel = forms.CharField(
        label='渠道',
        widget=forms.TextInput(attrs={
            'placeholder': '渠道',
        })
    )
    assignment = forms.CharField(
        label='人员分配',
        widget=forms.TextInput(attrs={
            'placeholder': '人员分配',
        })
    )
    process = forms.CharField(
        label='流程表',
        widget=forms.TextInput(attrs={
            'placeholder': '流程表',
        })
    )
    rehearsal = forms.CharField(
        label='彩排',
        widget=forms.TextInput(attrs={
            'placeholder': '彩排',
        })
    )
    note = forms.CharField(
        label='备注',
        widget=forms.TextInput(attrs={
            'placeholder': '备注',
        })
    )

    class Meta:
        model = Order  # 必须为数据库中的某个class
        exclude = ['userId', 'orderId']  # 获取数据库中所有字段
